package org.liquidByte.simpleChat.dto;

import java.io.Serializable;

public class UserMessage extends Message implements Serializable {
	
	private static final long serialVersionUID = 1245981934193525942L;
	private UserIdentification userInfo;

		
	public UserMessage(String description, UserIdentification userInfo) {
		super(description);
		if(userInfo == null){
			throw new NullPointerException("userID is null");
		}
		else{
			this.userInfo = userInfo;
		}
	}

	public UserIdentification getUserInfo() {
		return userInfo;
	}
		

}
